﻿/*
**  ContactNode
*/
if (!$.Engine.Dynamic.Contact || typeof $.Engine.Dynamic.Contact === "undefined") $.Engine.Dynamic.Contact = {};
$.Engine.Dynamic.Contact.ContactConstraint = function () {
  this.normal = new $.Engine.Math.Vector2D();
  
  this.points = new Array($.Engine.Settings.maxManifoldPoints);
  for (var i = 0; i < $.Engine.Settings.maxManifoldPoints; i++) {
    this.points[i] = new $.Engine.Dynamic.Contact.ContactConstraintPoint();
  }
};

Object.extend($.Engine.Dynamic.Contact.ContactConstraint.prototype, {
  points: null,
  normal: new $.Engine.Math.Vector2D(),
  manifold: null,
  body1: null,
  body2: null,
  friction: null,
  restitution: null,
  pointCount: 0
});
